<ion-view view-title="宿舍管理">
    <ion-nav-buttons side="right">
        <a class="button button-clear" on-tap="vm.collect.logout()">退出</a>
    </ion-nav-buttons>
    <ion-content class="tab-background">
        <div class="sel">
            <select ng-model="vm.collect.selected"
                    ng-change="vm.collect.Changed()"
                    ng-options="r.departName for r in vm.collect.list" class="first_select">
            </select>
        </div>

        <div class="main" id="wg">
            <div class="zrs">
                <div class="ry" ng-if="!vm.collect.toggle">{{vm.collect.selectedDate}}晚归人数</div>
                <div class="ry" ng-if="vm.collect.toggle">{{vm.collect.toDay}}晚归人数</div>
                <div class="sl">{{vm.collect.countAll}}个</div>
                <div class="sj">统计时间23：00至次日06.00</div>
            </div>
            <div id="area2">
                <div ng-if="!vm.collect.toggle">
                    <div class="first-div">
                        <select ng-model="vm.collect.selectedDate"
                           ng-change="vm.collect.dateChange()"
                           ng-options="d for d in vm.collect.dateList">
                        </select>
                        各学院晚归人数
                    </div>

                    <div class="tjt" id="eWg" style="height:420px;">

                    </div>
                </div>

                <div ng-if="vm.collect.toggle">
                    <div class="first-div">最近七天晚归、不归记录（人）</div>
                    <div class="tjt" id="rWg" style="height:300px;">

                    </div>
                </div>
            </div>
        </div>


    </ion-content>
</ion-view>